<script>
    $("#formaso").validate({
            
        submitHandler: function(form) {
            $(form).ajaxSubmit({
                target: "#content",
                beforeSubmit:function(){
                    $(".submit_button").hide();
                            
                }
                    
            }
       
        );
                
                
        }
           
    });
   
</script>
<?php echo $this->Form->create("Company", array("id" => "formaso", "action" => "financiera/" . $this->data['Company']['id'])); ?>
<?php echo $this->Form->hidden('Company.id'); ?>

<table border="1">

    <tbody>
        <tr>
            <td><?php echo $this->Form->input('Company.familias_desplazadas', array('label' => 'No familias desplazados')); ?></td>
            <td><?php echo $this->Form->input('Company.familias_afro', array('label' => 'No familias afrodescendientes')); ?></td>
            <td><?php echo $this->Form->input('Company.familias_indigenas', array('label' => 'No familias indígenas')); ?></td>
        </tr>
        <tr>
            <td><?php echo $this->Form->input('Company.familias_campesinas', array('label' => 'No familias campesinos')); ?></td>
            <td><?php echo $this->Form->input('Company.familias_desmovilizadas', array('label' => 'No familias desmovilizados')); ?></td>
            <td></td>
        </tr>
        <tr>
            <td><?php echo $this->Form->input('Company.asociados_inactivos', array('label' => 'Asociados inactivos')); ?></td>
            <td><?php echo $this->Form->input('Company.asociados_fallecidos', array('label' => 'Asociados fallecidos')); ?></td>
            <td><?php echo $this->Form->input('Company.asociados_desplazados', array('label' => 'Asociados desplazados')); ?></td>
        </tr>
        <tr>
            <td><?php echo $this->Form->input('Company.asociados_renunciaron', array('label' => 'Asociados que renunciaron voluntariamente')); ?></td>
            <td><?php echo $this->Form->input('Company.asociados_desafiliados', array('label' => 'Asociados desafiliados por asamblea general')); ?></td>
            <td><?php echo $this->Form->input('Company.asociados_sancionados', array('label' => 'Asociados sancionados actualmente')); ?></td>


        </tr>

    </tbody>
</table>






<?php echo $this->Form->input('Company.asociados_observacion', array('label' => 'Observaciones', 'class' => '')); ?>
<?php echo $this->Form->end(array('label' => 'Guardar', 'class' => 'submit_button')); ?>
